﻿<%@ Page Title="Create Customer Page" Language="C#" MasterPageFile="  ~/template/Site.Master" AutoEventWireup="true" CodeBehind="CreateCustomer.aspx.cs" Inherits="EAAdmin.CreateCustomer" %>

<%@ Import Namespace="EA.DTO" %>
<%@ Import Namespace="EA.Common" %>

<asp:Content runat="server" ID="BodyContent" ContentPlaceHolderID="MainContent">
    <form id="form1" runat="server">

        <div class="page_name">Customer Creation</div>
        <div class="error">
            <%                
                String alert = "";
                if (Attributes.ContainsKey("err"))
                {
                    alert = (String)Attributes["err"];
            %>
            <div class="message">
                <div><%=alert%></div>
            </div>
            <%  }
                if (Attributes.ContainsKey("success"))
                {
                    alert = (String)Attributes["success"];
            %>
            <div class="message_alert">
                <div><%=alert%></div>
            </div>
            <%  } %>
        </div>
        <div>
            <table style="margin-left: 350px">
                <tr>
                    <td>Email</td>
                    <td>:</td>
                    <td>
                        <input type="text" class="textbox" name="pEmail" id="pEmail" /></td>
                </tr>
                <tr>
                    <td>Password</td>
                    <td>:</td>
                    <td>
                        <input type="password" class="textbox" name="pPassword" id="pPassword" /></td>
                </tr>
                <tr>
                    <td>Sellable </td>
                    <td>:</td>
                    <td>
                        <input type="radio" checked="checked" name="pSellable" value="1" />Yes
                        <input type="radio" name="pSellable" value="0" />No
                    </td>
                </tr>
                <tr>
                    <td>Full Name</td>
                    <td>:</td>
                    <td>
                        <input type="text" class="textbox" name="pFullName" id="pFullName" />
                    </td>
                </tr>
                <tr>
                    <td>Phone</td>
                    <td>:</td>
                    <td>
                        <input type="text" class="textbox" name="pPhone" id="pPhone" /></td>
                </tr>
                <tr>
                    <td>Address</td>
                    <td>:</td>
                    <td>
                        <input type="text" class="textbox" name="pAddress" id="pAddress" /></td>
                </tr>
            </table>

        </div>
        <div>
            <input type="submit" class="button" value="Create" />
        </div>
    </form>
</asp:Content>
